package com.zmj.entity;

public class Book {
    private Integer id;
    private String bookName;
    private  Long price;
    private String author;
    private  Integer flag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":")
                .append(id);
        sb.append(",\"bookName\":\"")
                .append(bookName).append('\"');
        sb.append(",\"price\":")
                .append(price);
        sb.append(",\"author\":\"")
                .append(author).append('\"');
        sb.append(",\"flag\":")
                .append(flag);
        sb.append('}');
        return sb.toString();
    }
}
